package by.grsu.hdm.model;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Audio implements IMediaFiles {
	private static final List<String> SUPPORTED_FORMATS = Arrays.asList("mp3", "ogg", "wav");
	public List<String> supportedFormats = new ArrayList<String>();
	
	public Audio() {
		supportedFormats = SUPPORTED_FORMATS;
	}
	
	@Override
	public boolean checkFormat(String fileExtension) {
		if (supportedFormats.contains(fileExtension)) {
			return true;
		}
		else {
			return false;
		}
	}
}
